//
//  KZSearchRebateVC.swift
//  BoyeStore
//
//  Created by 朱凯 on 2018/6/23.
//  Copyright © 2018年 itboye. All rights reserved.
//

import UIKit

class KZSearchRebateVC: KZBaseViewController {
    
    let searchBar = KZRebateSearchBar()

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.title = "搜返利"
        
        setupUI()
    }
}

// MARK: ------ 布局
extension KZSearchRebateVC {
    
    func setupUI() {
        
        let topView = UIImageView()
        topView.isUserInteractionEnabled = true
        topView.image = #imageLiteral(resourceName: "搜返利-顶部图片")
        view.addSubview(topView)
        topView.snp.makeConstraints { (m) in
            m.left.top.right.equalTo(0)
            m.height.equalTo(topView.snp.width).multipliedBy(300.0/750.0)
        }
        
        
        topView.addSubview(searchBar)
        searchBar.snp.makeConstraints { (m) in
            m.height.equalTo(40)
            m.left.equalTo(10)
            m.right.equalTo(-10)
            m.bottom.equalTo(-10)
        }
    }
}
